import request from '../utils/request'

export const getRecommendPlaylist = (limit) => {
  return request({
    url : `/personalized?limit=${limit}`,
    method: 'GET'
  })
}

export const getSongListClass = () => {
  return request({
    url: '/playlist/catlist',
    method: 'get'
  })
}

export const getHotSongListClass = () => {
  return request({
    url: '/playlist/hot',
    method: 'get'
  })
}

export const getSelectedPlaylistClass = (query) => {
  return request({
    url: '/playlist/highquality/tags',
    method: 'get',
    query
  })
}

export const getSelectedSongList = (query) => {
  return request({
    url: `/top/playlist/highquality`,
    method: 'get',
    query
  })
}

export const getPlayLists = (offset,limit,order,cat) => {
  return request({
    url: `/top/playlist?offset=${offset}&limit=${limit}&order=${order}&cat=${cat}`,
    method: 'get'
  })
}
